Weak Sets

``Populations'' have been renamed to ``weak-sets''. This change was made in the belief that ``weak-set'' is a more intuitive name then ``population''. The old names are still supported, but they will be removed in a future release.

make-population $&rarr#longrightarrow;$ make-weak-set
population? $&rarr#longrightarrow;$ weak-set?
add-to-population $&rarr#longrightarrow;$ add-to-weak-set!
remove-from-population $&rarr#longrightarrow;$ remove-from-weak-set!
population->list $&rarr#longrightarrow;$ weak-set->list
walk-population $&rarr#longrightarrow;$ walk-weak-set

In addition, two new procedures on weak-sets have been added.


(weak-set-member?object weak-set) procedure
$\Longrightarrow$ boolean

weak-set-member? returns true if object is a member of weak-set; otherwise, it returns false.


(weak-set-empty?weak-set) procedure
$\Longrightarrow$ boolean

weak-set-empty? returns true if weak-set is empty; otherwise, it returns false.